package com.simba.system.mapper;

import com.simba.system.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author 陈俊 1002471284@qq.com
 * @since 2021-03-24
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getMenusByUserId(Long userId);

    List<Menu> getMenusWithRole();

    List<Menu> getMenusWithRoleByUrl(String url);
}
